﻿using Common.Web.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Tokens;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Web
{
    /// <summary>
    /// 链路跟踪
    /// </summary>
    public static class LinkTracertExtension
    {
        /// <summary>
        /// 使用服务调用链路追踪中间件
        /// </summary>
        /// <param name="app"></param>
        public static void UseLinkTracert(this IApplicationBuilder app)
        {
            app.UseMiddleware<LinkTracertMiddleware>();
        }        
    }
}
